]> dgit.raspbian.org Git - gnome-shell.git/commit
shell-app: Improve discrete GPU detection
authorJan200101 <sentrycraft123@gmail.com>
Sun, 25 Jan 2026 21:33:49 +0000 (22:33 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 27 Jan 2026 17:55:42 +0000 (17:55 +0000)
commit60f8a7f6810a8c6d155190077369a268b9de1a7b
treeb7c22d3cd0da8324fa0b2934a17dd55aaf9bad42
parentb5a3dfeab4a9f2678b6082b75b79422fe8201ece
shell-app: Improve discrete GPU detection

The original logic only took into account if a GPU is the "Default",
meaning the GPU used during boot, which was intended for Laptops with
Hybrid Graphics.

The new logic uses the new Discrete key to figure out which GPU is the
most appropriate to use in order of:
- the first non-default GPU if it is discrete
- the first discrete GPU if it exists
- the first non-default GPU

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3193>
data/dbus-interfaces/net.hadess.SwitcherooControl.xml
src/shell-app.c